package org.yray.sip.handler.err;

import lombok.extern.slf4j.Slf4j;
import org.yray.sip.base.SipMsg;
import org.yray.sip.constant.SipCodeEnum;
import org.yray.sip.handler.MessageHandler;
import org.yray.sip.server.SipServerContext;

@Slf4j
public class SU503Handler extends MessageHandler {


    @Override
    public String[] handler(SipMsg sipMsg, SipServerContext ssc) {
        log.info("sip 503 ");
        sipMsg.setSipCode(SipCodeEnum.SIP_503);
        String result=handlerErr(sipMsg,ssc);
        return new String[]{result};
    }
}
